package video.local.analyse;

import java.io.IOException;

import video.local.VideoBasicMethodsSet;
import video.local.analyse.stereo.VideoStereoSimilarity;
import data.database.VideoRecord;
import exception.ImageNotFoundException;
import exception.VideoNotFoundException;

public class Video {
	protected float stereoSimilarity;
	protected VideoRecord vr;
	protected String videoFilePath;
	
	public Video(VideoRecord vr) throws VideoNotFoundException{
		this.vr = vr;
		videoFilePath = VideoBasicMethodsSet.getVideoPathByVideoPageUrl(vr.url);	
	}
	
	public boolean isStereo() throws ImageNotFoundException{
		VideoStereoSimilarity vss = new VideoStereoSimilarity( videoFilePath );
		return vss.isStereo();
	}
}
